<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/commons/taglibs.jsp"%>
<%@ taglib prefix="sys" tagdir="/WEB-INF/tags" %>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>角色管理页面</title>
    <jsp:include page="../../../commons/common-list.jsp"></jsp:include>
    <script type="text/javascript" src="${basePath}/statics/modules/sys/role/js/role_list.js"></script>
</head>
<body >

<sys:message msgContent="${message}" />
    <div style="margin-top:20px;">
        <div class="row" style="margin:10px 0px 10px 20px">
              <label class="col-md-1 control-label text-pull-right line-height-30 " for="roleName">角色名称:</label>
              <input class="col-md-3 input-height-30"type="text" id="roleName" name="roleName" >
              <button class="col-md-1 btn-radius btn btn-primary line-height-30" onclick="search()" style="margin-left: 40px"><i class="fa fa-search" style="margin-right: 5px"></i>查询</button>
              <button class="col-md-1 btn-radius btn btn-primary line-height-30" onclick="reset()" type="reset" style="margin-left: 5px"><i class="fa fa-undo" style="margin-right: 5px"></i>重置</button>
          </div>
        <div class="row" style="margin:10px 0px 10px 30px">
            <div class="pull-left">
                <shiro:hasPermission name="sys:user:add">
                    <button  class="btn btn-primary " type="button" onclick="addRole();" ><i class="fa fa-plus" style="margin-right: 5px"></i>添加角色</button>
                </shiro:hasPermission>

                <shiro:hasPermission name="sys:user:delete">
                    <button id="btnSubmit" class="btn btn-danger" style="margin-left: 5px"  type="button" onclick="batchDelete();"><i class="fa fa-trash-o" style="margin-right: 5px"></i>禁用</button>
                </shiro:hasPermission>

            </div>

        </div>
    </div>


    <div class="easyui-datagrid" id="roleGrid" ></div>
</body>

</html>
